package com.ship.dispatch.bpm.vo.task;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Schema(description = "管理后台 - 流程任务的 Running 进行中的分页项 Response VO")
@Data
public class BpmTaskTodoItemRespVO implements Serializable {

    @Schema(description = "任务编号", required = true, example = "1024")
    private String id;

    @Schema(description = "任务名字", required = true, example = "")
    private String name;

    @Schema(description = "接收时间", required = true)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date claimTime;

    @Schema(description = "创建时间", required = true)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "激活状态,参见 SuspensionState 枚举", required = true, example = "1")
    private Integer suspensionState;

    private String processName;

    private String processId;

    private String startUserId;

    private String processDefinitionId;
    /**
     * 业务id
     */
    private Long serviceId;
    /**
     * 业务类型
     */
    private String type;
    /**
     * 合同类型
     */
    private String serviceType;

    private String startUserName;
    /**
     * 任务状态
     */
    private Integer status;

    private String statusStr;
    /**
     * 申请人
     */
    private String createBy;
    /**
     * 原因
     */
    private String reason;
}